package com.patterns.adapter.ObjAdapter;

/**
 * Created by Xiao Yiyun on 2017/6/2.
 * 场景类
 */
public class Client {

    public static void main(String[] args) {
        //外系统的人员信息
        IOuterUserBaseInfo baseInfo = new OuterUserBaseInfo();
        IOuterHomeInfo homeInfo = new OuterUserHomeInfo();
        IOuterUserOfficeInfo officeInfo = new OuterUserOfficeInfo();
        //传递三个对象
        IUserInfo youngBoy = new OuterUserInfo(baseInfo, homeInfo, officeInfo);
        //从数据库中查到101个
        for (int i=0; i<101; i++) {
            youngBoy.getMobileNumber();
        }
    }
}
